package org.study.springboot.learning.proxy;

import org.springframework.cglib.proxy.CallbackFilter;
import org.springframework.util.StringUtils;

import java.lang.reflect.Method;

/**
 * <p>Title: DaoFilter <p>
 * <p>Description: TODO<p>
 *
 * @Author ZhangSY
 * @Date 2021/6/25 0:11
 * @Version v1.0
 **/
public class DaoFilter implements CallbackFilter {

    @Override
    public int accept(Method method) {
        if ("select".equals(method.getName())) {
            return 0;
        }
        return 1;
    }
}
